package com.sip.dbadapter.dao.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "EMPLOYEE_NEWC")
public class Employee {

    private long id;

    private String name;

    private long age;
    
  

    public Employee() {

    }

    public Employee(String name, long age) {

        this.name = name;
        this.age = age;
    }

    @Id
//    @GeneratedValue
//    @Column(name = "id")

//    @GeneratedValue(generator="increment")
//    @GenericGenerator(name="increment", strategy = "increment")
  // @GeneratedValue(strategy = IDENTITY)
  //  @GeneratedValue(generator="gen")
   //  @GenericGenerator(name="gen", strategy="", parameters=@Parameter(name="property", value="name"))
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    public long getId() {

        return id;
    }

    public void setId(long id) {

        this.id = id;
    }

    @Column(name = "Age")
    public long getAge() {

        return age;
    }
   
    public void setAge(long age) {

        this.age = age;
    }

    @Column(name = "Name")
    public String getName() {

        return name;
    }

    public void setName(String name) {

        this.name = name;
    }

}
